<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style type="text/css">
    p:lang(en) {color:blue; background: white;}
    p:lang(zh) {color: white; background: red;}
  </style>
</head>
<body>
  <p lang="en">Some English text.</p>
  <p lang="zh">这是中文字.</p>
</body>
</html>
